<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
    <body>
        <ui:composition template="template.xhtml">            
            <ui:define name="bodyContent">
                <h1><h:outputText value="Benutzer anmelden" /></h1>
                <h:form id="loginForm">
                    <h:messages infoClass="info" warnClass="warn" errorClass="error" />
                    <h:panelGrid columns="2">
                        <h:outputLabel for="username" value="Name: " />
                        <h:panelGroup>
                            <!-- <h:inputText id="username" value="#{UserController.user.login}" /> -->
                            <input type="text" name="j_username" jsfc="h:inputText" />
                            <h:message for="username" infoClass="info" warnClass="warn" errorClass="error" />
                        </h:panelGroup>
                        <h:outputLabel for="password" value="Password: " />
                        <h:panelGroup>
                            <!-- <h:inputSecret id="password" value="#{UserController.user.password}" /> -->
                            <input type="password" name="j_password" jsfc="h:inputSecret" />
                            <h:message for="password" infoClass="info" warnClass="warn" errorClass="error" />
                        </h:panelGroup>
                        <h:commandButton value="submit" type="submit" action="#{UserController.login}" />
                        <h:commandButton value="reset" type="reset" />
                        <h:commandLink value="Register" action="register" />
                        <h:commandLink value="Forgot Password" action="forgot" />
                    </h:panelGrid>
                </h:form>
            </ui:define>  
        </ui:composition>
    </body>
</html>